<template>
<div>

    <van-nav-bar title="加班管理" left-text="返回" left-arrow @click-left="onClickLeft()" />

    <van-cell-group>
        <van-grid :column-num="3">
            <van-cell title="新增加班" @click="select()" />
            <van-cell title="我的加班" is-link to="wdjb" />
            <van-cell title="待审核加班" is-link to="jbsh" />
            <van-cell title="已审核加班" is-link to="yshjb" />

            <van-cell title="代申请加班" @click="select1()"/>

        </van-grid>
    </van-cell-group>

</div>
</template>

<script>
import {
    Dialog
} from 'vant';
export default {

    created() {

    },
    methods: {
        onClickLeft() {
            this.$router.go(-1); //返回上一层
        },
        select() {
            Dialog.confirm({
                    title: '温馨提示',
                    message: '请选择加班类型',
                    confirmButtonText: "加班备案(单次)",
                    cancelButtonText: '加班备案(多次)'
                })
                .then(() => {
                    this.$router.push({
                        path: 'xjjb',
                        
                    })
                })
                .catch(() => {
                    this.$router.push({
                        path: 'xjjbdc',
                        
                    })
                });
        },
         select1() {
            Dialog.confirm({
                    title: '温馨提示',
                    message: '请选择代申请加班类型',
                    confirmButtonText: "代申请加班备案(单次)",
                    cancelButtonText: '代申请加班备案(多次)'
                })
                .then(() => {
                    this.$router.push({
                        path: 'dsqjb',
                        
                    })
                })
                .catch(() => {
                    this.$router.push({
                        path: 'dsqjbdc',
                        
                    })
                });
        },
    }
};
</script>

<style>

</style>
